package lc.com.lcpicturebackend.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 文件常量
 *
 * @author yupi
 */
public interface FileConstant {

    /**
     * 允许上传文件的类型
     */
    List<String> ALLOW_FORMAT_LIST = Arrays.asList("jpg", "jpeg", "png", "webp");
    /**
     * 允许上传文件的大小
     */
    long ONE_M = 1024 * 1024L;
    /**
     * 允许图片类型
     */
    List<String> ALLOW_CONTENT_TYPES = Arrays.asList("image/jpeg", "image/jpg", "image/png", "image/webp");
}
